﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F6D RID: 3949
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicScepterTakeOffUnitCsReq : IMessage<RogueMagicScepterTakeOffUnitCsReq>, IMessage, IEquatable<RogueMagicScepterTakeOffUnitCsReq>, IDeepCloneable<RogueMagicScepterTakeOffUnitCsReq>, IBufferMessage
	{
		// Token: 0x17003219 RID: 12825
		// (get) Token: 0x0600B100 RID: 45312 RVA: 0x001DE911 File Offset: 0x001DCB11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicScepterTakeOffUnitCsReq> Parser
		{
			get
			{
				return RogueMagicScepterTakeOffUnitCsReq._parser;
			}
		}

		// Token: 0x1700321A RID: 12826
		// (get) Token: 0x0600B101 RID: 45313 RVA: 0x001DE918 File Offset: 0x001DCB18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicScepterTakeOffUnitCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700321B RID: 12827
		// (get) Token: 0x0600B102 RID: 45314 RVA: 0x001DE92A File Offset: 0x001DCB2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicScepterTakeOffUnitCsReq.Descriptor;
			}
		}

		// Token: 0x0600B103 RID: 45315 RVA: 0x001DE931 File Offset: 0x001DCB31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterTakeOffUnitCsReq()
		{
		}

		// Token: 0x0600B104 RID: 45316 RVA: 0x001DE944 File Offset: 0x001DCB44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterTakeOffUnitCsReq(RogueMagicScepterTakeOffUnitCsReq other) : this()
		{
			this.magicUnitIdList_ = other.magicUnitIdList_.Clone();
			this.scepterId_ = other.scepterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B105 RID: 45317 RVA: 0x001DE97A File Offset: 0x001DCB7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterTakeOffUnitCsReq Clone()
		{
			return new RogueMagicScepterTakeOffUnitCsReq(this);
		}

		// Token: 0x1700321C RID: 12828
		// (get) Token: 0x0600B106 RID: 45318 RVA: 0x001DE982 File Offset: 0x001DCB82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> MagicUnitIdList
		{
			get
			{
				return this.magicUnitIdList_;
			}
		}

		// Token: 0x1700321D RID: 12829
		// (get) Token: 0x0600B107 RID: 45319 RVA: 0x001DE98A File Offset: 0x001DCB8A
		// (set) Token: 0x0600B108 RID: 45320 RVA: 0x001DE992 File Offset: 0x001DCB92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScepterId
		{
			get
			{
				return this.scepterId_;
			}
			set
			{
				this.scepterId_ = value;
			}
		}

		// Token: 0x0600B109 RID: 45321 RVA: 0x001DE99B File Offset: 0x001DCB9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicScepterTakeOffUnitCsReq);
		}

		// Token: 0x0600B10A RID: 45322 RVA: 0x001DE9AC File Offset: 0x001DCBAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicScepterTakeOffUnitCsReq other)
		{
			return other != null && (other == this || (this.magicUnitIdList_.Equals(other.magicUnitIdList_) && this.ScepterId == other.ScepterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B10B RID: 45323 RVA: 0x001DE9FC File Offset: 0x001DCBFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.magicUnitIdList_.GetHashCode();
			if (this.ScepterId != 0U)
			{
				num ^= this.ScepterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B10C RID: 45324 RVA: 0x001DEA49 File Offset: 0x001DCC49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B10D RID: 45325 RVA: 0x001DEA51 File Offset: 0x001DCC51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B10E RID: 45326 RVA: 0x001DEA5C File Offset: 0x001DCC5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.magicUnitIdList_.WriteTo(ref output, RogueMagicScepterTakeOffUnitCsReq._repeated_magicUnitIdList_codec);
			if (this.ScepterId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.ScepterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B10F RID: 45327 RVA: 0x001DEAAC File Offset: 0x001DCCAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.magicUnitIdList_.CalculateSize(RogueMagicScepterTakeOffUnitCsReq._repeated_magicUnitIdList_codec);
			if (this.ScepterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScepterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B110 RID: 45328 RVA: 0x001DEB00 File Offset: 0x001DCD00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicScepterTakeOffUnitCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.magicUnitIdList_.Add(other.magicUnitIdList_);
			if (other.ScepterId != 0U)
			{
				this.ScepterId = other.ScepterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B111 RID: 45329 RVA: 0x001DEB4D File Offset: 0x001DCD4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B112 RID: 45330 RVA: 0x001DEB58 File Offset: 0x001DCD58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U && num != 26U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ScepterId = input.ReadUInt32();
					}
				}
				else
				{
					this.magicUnitIdList_.AddEntriesFrom(ref input, RogueMagicScepterTakeOffUnitCsReq._repeated_magicUnitIdList_codec);
				}
			}
		}

		// Token: 0x040047AD RID: 18349
		private static readonly MessageParser<RogueMagicScepterTakeOffUnitCsReq> _parser = new MessageParser<RogueMagicScepterTakeOffUnitCsReq>(() => new RogueMagicScepterTakeOffUnitCsReq());

		// Token: 0x040047AE RID: 18350
		private UnknownFieldSet _unknownFields;

		// Token: 0x040047AF RID: 18351
		public const int MagicUnitIdListFieldNumber = 3;

		// Token: 0x040047B0 RID: 18352
		private static readonly FieldCodec<uint> _repeated_magicUnitIdList_codec = FieldCodec.ForUInt32(26U);

		// Token: 0x040047B1 RID: 18353
		private readonly RepeatedField<uint> magicUnitIdList_ = new RepeatedField<uint>();

		// Token: 0x040047B2 RID: 18354
		public const int ScepterIdFieldNumber = 6;

		// Token: 0x040047B3 RID: 18355
		private uint scepterId_;
	}
}
